package com.shop.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.pojo.sms.Sms_Coupon_History;
import com.shop.service.Sms_Coupon_History_Service;
import com.shop.utils.LayuiUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 优惠券领取历史信息-李贝贝
 */
@RestController
@RequestMapping("/coupon_history")
public class Sms_Coupon_History_Controller {

    @Autowired
    private Sms_Coupon_History_Service sms_coupon_history_service;

    /**
     * 显示所有优惠券领取历史信息
     * @param page
     * @param limit
     * @param sms_coupon_history
     * @return
     */
    @GetMapping("/find_Admin_All_Sms_Coupon_History")
    public LayuiUtils<Sms_Coupon_History> find_Admin_All_Sms_Coupon_History(Integer page, Integer limit, Sms_Coupon_History sms_coupon_history){
        Page<Sms_Coupon_History> pages = new Page<>(page,limit);
        return sms_coupon_history_service.find_sms_coupon_history(pages,sms_coupon_history);
    }

    //目前无增删改
}
